<?php
namespace app\index\controller;

use bbweb\basic\BaseController;
use think\facade\Config;

class Basic extends BaseController
{
    protected function initialize()
    {
        $site_name = sys_config('site_name') ?? Config::get('hello.title');
        $site_url = sys_config('site_url') ?? Config::get('hello.site_url');
        $version = Config::get('hello.version');
        $this->assign(compact('site_name','site_url','version'));
    }
}
